import net.DataExtracter;

import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;

public class RobotPipelineFactory implements ChannelPipelineFactory {

	public Query query;

	public RobotPipelineFactory(Query query) {
		this.query = query;
	}

	@Override
	public ChannelPipeline getPipeline() throws Exception {
		ChannelPipeline pipeline = Channels
				.pipeline(new DataExtracter(), query);
		return pipeline;
	}

}
